package com.hp.service.impl;

import com.hp.dao.CollectionDao;
import com.hp.entity.Collection;
import com.hp.entity.Goods;
import com.hp.service.CollectionService;

public class CollectionServiceImpl implements CollectionService {
	private CollectionDao collectiondao;
	
	public void setCollectiondao(CollectionDao collectiondao) {
		this.collectiondao = collectiondao;
	}


	@Override
	public void createCollection(Integer id,Goods good,String time) {
		Collection collection=new Collection();
		collection.setCoid(id);
		collection.setCogoods(good);
		collection.setCotimg(time);
		collectiondao.insertCollection(collection);
	}


	@Override
	public void dropCollection() {
		// TODO Auto-generated method stub
		
	}

}
